package com.cian.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  子服务器的表示类
 * </p>
 *
 * @author Cian
 * @since 2021-03-04
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Subsystem对象", description="子服务器类")
public class Subsystem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "子系统id")
    @TableId(value = "subsystem_id", type = IdType.AUTO)
    private Integer subsystemId;

    @ApiModelProperty(value = "经度")
    private Double sLongitude;

    @ApiModelProperty(value = "纬度")
    private Double sLatitude;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    @ApiModelProperty(value = "识别码")
    private String sCode;

    @ApiModelProperty(value = "子系统详细信息")
    private String sDetail;

    @TableField(value = "server_account")
    @ApiModelProperty(value = "子系统对接的服务器账户名")
    private String serverAccount;
}
